package com.younion.vo;

import cpcns.component.common.base.BaseVO;
import cpcns.persister.converter.IDomainObject;
import cpcns.persister.service.CompositeID;


 
public class RechargeRuleVO extends BaseVO implements IDomainObject,Cloneable{

	/**  */
	private static final long serialVersionUID = -1L;

 
	private Integer id;

	 
	private Double rechargeMoney;

	 
	private Double firstGiveMoney;

	 
	private Integer givePoint;

	 
	private Integer frequency;

 
	private Double everyGiveMoney;

 
	private Integer giveCount;
 
	private Integer cardEntityId;

	/**
	 * 
	 */
	public RechargeRuleVO() {
	}
	
	public RechargeRuleVO(Integer id) {
		this.id = id;
	}

	/** 
	 * @return the id
	 */ 
	public Integer getId() {
		return id;
	}

	/** 
	 * @param id the id to set 
	 */ 
	public void setId(Integer id) {
		this.id = id;
	}

	/** 
	 * @return the rechargeMoney
	 */ 
	public Double getRechargeMoney() {
		return rechargeMoney;
	}

	/** 
	 * @param rechargeMoney the rechargeMoney to set 
	 */ 
	public void setRechargeMoney(Double rechargeMoney) {
		this.rechargeMoney = rechargeMoney;
	}

	/** 
	 * @return the firstGiveMoney
	 */ 
	public Double getFirstGiveMoney() {
		return firstGiveMoney;
	}

	/** 
	 * @param firstGiveMoney the firstGiveMoney to set 
	 */ 
	public void setFirstGiveMoney(Double firstGiveMoney) {
		this.firstGiveMoney = firstGiveMoney;
	}

	/** 
	 * @return the givePoint
	 */ 
	public Integer getGivePoint() {
		return givePoint;
	}

	/** 
	 * @param givePoint the givePoint to set 
	 */ 
	public void setGivePoint(Integer givePoint) {
		this.givePoint = givePoint;
	}


	public Integer getFrequency() {
		return frequency;
	}

	public void setFrequency(Integer frequency) {
		this.frequency = frequency;
	}

	public Double getEveryGiveMoney() {
		return everyGiveMoney;
	}

	public void setEveryGiveMoney(Double everyGiveMoney) {
		this.everyGiveMoney = everyGiveMoney;
	}

	/** 
	 * @return the giveCount
	 */ 
	public Integer getGiveCount() {
		return giveCount;
	}

	/** 
	 * @param giveCount the giveCount to set 
	 */ 
	public void setGiveCount(Integer giveCount) {
		this.giveCount = giveCount;
	}

	/** 
	 * @return the cardEntityId
	 */ 
	public Integer getCardEntityId() {
		return cardEntityId;
	}

	/** 
	 * @param cardEntityId the cardEntityId to set 
	 */ 
	public void setCardEntityId(Integer cardEntityId) {
		this.cardEntityId = cardEntityId;
	}
	
	public String getTitle(){
		return "充值"+rechargeMoney+"元，首次额外赠送"+firstGiveMoney+"元和"+givePoint+
					"积分，后续每隔"+frequency+"天，每次赠送"+everyGiveMoney
					+"元，共反赠"+giveCount+"次。";
	}

	public CompositeID getCompositeID(){
		CompositeID _id = super.getCompositeID();
		_id.clear();
		if(id != null){
			_id.addKey("id", id);
		}
		return _id;
	}
}
